package com.jinzhi.api.controller.aunt;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.utils.Result;
import com.jinzhi.jzweb.domain.*;
import com.jinzhi.jzweb.service.*;
import io.swagger.annotations.*;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author: mcf
 * @CreateTime: 2024/05/20
 * @Description: 推荐介绍 Controller
 */
@Controller
@RequestMapping("/api/auntReferee")
@Api(value = "阿姨端推荐介绍", tags = "阿姨端推荐介绍")
public class AuntRefereeController {

    private final JazAuntRefereeService jazAuntRefereeService;


    public AuntRefereeController(JazAuntRefereeService jazAuntRefereeService){
        this.jazAuntRefereeService = jazAuntRefereeService;
    }

    @ApiOperation(value = "推荐介绍列表", notes = "推荐介绍列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "size", value = "每页大小", required = true, dataType = "Integer"),
            @ApiImplicitParam(name = "curren", value = "当前页", required = true, dataType = "Integer"),
    })
    @ApiResponses({@ApiResponse(code = 0, message = "操作成功",response = JazAuntRefereeDO.class),
            @ApiResponse(code = 500, message = "服务器内部异常")})
    @ResponseBody
    @GetMapping("/auntRefereeList")
    public Result<?> auntRefereeList(JazAuntRefereeDO jazAuntRefereeDO){

        return jazAuntRefereeService.auntRefereeList(jazAuntRefereeDO);
    }


}
